<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>

<head>
<title>Form</title>
</head>

<body>
	<hr>
	<h4>Gentilmente compilare il modulo!</h4>
	<s:form namespace="form2" action="Check">
		<s:textfield name="user.nome" label="Nome" />
		<s:textfield name="user.cognome" label="Cognome" />
		<s:date name="user.dataNascita" format="dd/MM/yyyy" var="formattedVal" />
		<s:textfield name="user.dataNascita" value="%{#formattedVal}" label="Data di nascita" />
		<s:textfield name="user.punteggio" label="Punteggio" />
		<div>
			<s:submit value="Invia" />
		</div>
	</s:form>
	<s:if test="hasActionMessages()">
		<div>
			<s:actionmessage />
		</div>
	</s:if>
	<hr>
</body>

</html>